﻿@model LetLord.Models.RegisterModel

<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        <div class="row-fluid">

            <div class="span3 offset3 well">

            <div class="editor-label">
                @Html.LabelFor(model => model.UserName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Email)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.FirstName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.FirstName)
                @Html.ValidationMessageFor(model => model.FirstName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.LastName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.LastName)
                @Html.ValidationMessageFor(model => model.LastName)
            </div>

      </div>

      <div class="span3 well">

            <div class="editor-label">
                @Html.LabelFor(model => model.AccountType)
            </div>
            <div class="dropdown">
                @Html.DropDownListFor(model => model.AccountType, new SelectList(Enum.GetValues(typeof(LetLord.Models.AccountType))))
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Password)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ConfirmPassword)
                @Html.ValidationMessageFor(model => model.ConfirmPassword)
            </div>

            <p>
                @* @Html.ActionLink("Register", "Register", "Account",  
                 routeValues: new ViewDataDictionary<LetLord.Models.RegisterModel>(), 
                 htmlAttributes: new { @class="btn btn-large btn-primary", @id="btn-sign-up"})*@
                <input type="submit" value="Register" class="btn btn-large btn-primary" />
            </p>
          </div>

        </div>

    </fieldset>
}